翻訳と辞書
Words near each other
・ Lefteris Poulios
・ Lefteris Topalidis
・ Lefteris Valakas
・ Lefteris Vogiatzes
・ Lefteris Zagoritis
・ Leftfield
・ Leftfield (disambiguation)
・ Leftfoot
・ Lefties
・ Lefties Soul Connection
・ Leftism (album)
・ Leftist Alliance
・ Leftist errors (Yugoslavia)
・ Leftist guerrilla groups of Iran
・ Leftist Socialist Party of Japan
Leftist tree
・ LeftLion
・ Leftover Cuties
・ Leftover hash lemma
・ Leftover Salmon
・ Leftover Wine
・ Leftovers
・ Leftoverture
・ LeftRightLeftRightLeft
・ Leftside
・ Leftvent
・ Leftwich
・ Leftwich (disambiguation)
・ Leftwich (surname)
・ Leftwich House


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Leftist tree : ウィキペディア英語版
Leftist tree
In computer science, a leftist tree or leftist heap is a priority queue implemented with a variant of a binary heap. Every node has an ''s-value'' which is the distance to the nearest leaf. In contrast to a ''binary heap'', a leftist tree attempts to be very unbalanced. In addition to the heap property, leftist trees are maintained so the right descendant of each node has the lower s-value.
The height-biased leftist tree was invented by Clark Allan Crane. The name comes from the fact that the left subtree is usually taller than the right subtree.
When inserting a new node into a tree, a new one-node tree is created and merged into the existing tree. To delete a minimum item, we remove the root and the left and right sub-trees are then merged. Both these operations take O(log ''n'') time. For insertions, this is slower than binomial heaps which support insertion in amortized constant time, O(1) and O(log ''n'') worst-case.
Leftist trees are advantageous because of their ability to merge quickly, compared to binary heaps which take Θ(''n''). In almost all cases, the merging of skew heaps has better performance. However merging leftist heaps has worst-case O(log ''n'') complexity while merging skew heaps has only amortized O(log ''n'') complexity.
==Bias==
The usual leftist tree is a ''height-biased'' leftist tree.〔 However, other biases can exist, such as in the ''weight-biased'' leftist tree.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Leftist tree」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.